package cn.com.nes.common.packet.impl;


import cn.com.nes.common.packet.AbstractPacket;
import cn.com.nes.common.packet.PacketType;

public class Result extends AbstractPacket {

    private ResultType resultType = ResultType.MESSAGE;
    private Boolean status = false;
    private String message = "";

    public Result(Long sequenceNumber) {
        super(sequenceNumber);
    }

    @Override
    public PacketType getType() {
        return PacketType.RESPONSE;
    }

    public ResultType getResultType() {
        return resultType;
    }

    public Result setResultType(ResultType resultType) {
        this.resultType = resultType;
        return this;
    }

    public Boolean getStatus() {
        return status;
    }

    public Result setStatus(Boolean status) {
        this.status = status;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public Result setMessage(String message) {
        this.message = message;
        return this;
    }
}
